package com.api.shopapi.mapper;

import com.api.shopapi.entity.SBJStatusRecord;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface SBJStatusRecordMapper {

    @Insert("insert into sbj_status_record (SBJStatusRecordCode,HeaderCode,DeviceId,Message,AddTime) values " +
            "(#{statusRecord.SBJStatusRecordCode},#{statusRecord.HeaderCode},#{statusRecord.DeviceId},#{statusRecord.Message},#{statusRecord.AddTime})")
    int insert(@Param("statusRecord")SBJStatusRecord statusRecord);
}
